  /**
   * Generate time : 2016-06-07 11:26:55
   * Version : 1.0.1.V20070717
   */
package com.baosight.innerinterface.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * Tsosl05 
 * table comment : 质检数据表 
 */
public class Tsosl05 extends DaoEPBase {

	private String recCreator = " ";		/* 创建人*/
	private String recCreateTime = " ";		/* 创建时间*/
	private String recRevisor = " ";		/* 修改人*/
	private String recReviseTime = " ";		/* 修改时间*/
	private String archiveFlag = " ";		/* 归档标志*/
	private String processInstanceId = " ";		/* 流程实例ID*/
	private String fileId = " ";		/* 文件标识*/
	private Integer id = new Integer(0);		/* ID*/
	private String batchNo = " ";		/* 批次号*/
	private Integer seqNo = new Integer(0);		/* 顺序号*/
	private String companyCode = " ";		/* 公司代码*/
	private String companyName = " ";		/* 公司别名称*/
	private String vehicleNo = " ";		/* 车船号*/
	private String qualityDesc = " ";		/* 质量信息*/
	private String qualityPara = " ";		/* 质量参数*/
	private BigDecimal saleNotaxPrice = new BigDecimal("0");		/* 销售不含税单价*/
	private String inputTime = " ";		/* 录入时间*/
	private String inputPersonId = " ";		/* 录入人工号*/
	private String inputPersonName = " ";		/* 录入人姓名*/
	private String reviewTime = " ";		/* 复核时间*/
	private String reviewPersonId = " ";		/* 复核人工号*/
	private String reviewPersonName = " ";		/* 复核人姓名*/
	private String memo = " ";		/* 备注*/
	private String stackingNo = " ";		/* 码单号*/
	private String dataSourceType = " ";		/* 数据来源性质*/
	private String dataSourceCode = " ";		/* 数据来源代码*/
	private String dataSourceName = " ";		/* 数据来源名称*/
	private String tsosl02Id = " ";		/* 发货实绩表ID*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("recCreator");
	eiColumn.setFieldLength(64);	
	eiColumn.setDescName("创建人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("recCreateTime");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("创建时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("recRevisor");
	eiColumn.setFieldLength(64);	
	eiColumn.setDescName("修改人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("recReviseTime");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("修改时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("archiveFlag");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName("归档标志");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("processInstanceId");
	eiColumn.setFieldLength(64);	
	eiColumn.setDescName("流程实例ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fileId");
	eiColumn.setFieldLength(1024);	
	eiColumn.setDescName("文件标识");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("id");
	eiColumn.setPrimaryKey(true);
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(8);
	eiColumn.setDescName("ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("batchNo");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("批次号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("seqNo");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(8);
	eiColumn.setDescName("顺序号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("companyCode");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("公司代码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("companyName");
	eiColumn.setFieldLength(256);	
	eiColumn.setDescName("公司别名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("vehicleNo");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("车船号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("qualityDesc");
	eiColumn.setFieldLength(1024);	
	eiColumn.setDescName("质量信息");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("qualityPara");
	eiColumn.setFieldLength(4000);	
	eiColumn.setDescName("质量参数");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("saleNotaxPrice");
	eiColumn.setType("N");
	eiColumn.setScaleLength(6);
	eiColumn.setFieldLength(18);
	eiColumn.setDescName("销售不含税单价");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("inputTime");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("录入时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("inputPersonId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("录入人工号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("inputPersonName");
	eiColumn.setFieldLength(256);	
	eiColumn.setDescName("录入人姓名");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("reviewTime");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("复核时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("reviewPersonId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("复核人工号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("reviewPersonName");
	eiColumn.setFieldLength(256);	
	eiColumn.setDescName("复核人姓名");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("memo");
	eiColumn.setFieldLength(2048);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("stackingNo");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("码单号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("dataSourceType");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("数据来源性质");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("dataSourceCode");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("数据来源代码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("dataSourceName");
	eiColumn.setFieldLength(256);	
	eiColumn.setDescName("数据来源名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("tsosl02Id");
	eiColumn.setFieldLength(8);	
	eiColumn.setDescName("发货实绩表ID");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public Tsosl05() {
		initMetaData();
	}
	
	/**
	 * get the recCreator - 创建人
	 * @return the recCreator
	 */
	public String getRecCreator() {
		return this.recCreator;
	}
	
	/**
	 * set the recCreator - 创建人
	 */
	public void setRecCreator(String recCreator) {
		this.recCreator = recCreator;
	}
	
	/**
	 * get the recCreateTime - 创建时间
	 * @return the recCreateTime
	 */
	public String getRecCreateTime() {
		return this.recCreateTime;
	}
	
	/**
	 * set the recCreateTime - 创建时间
	 */
	public void setRecCreateTime(String recCreateTime) {
		this.recCreateTime = recCreateTime;
	}
	
	/**
	 * get the recRevisor - 修改人
	 * @return the recRevisor
	 */
	public String getRecRevisor() {
		return this.recRevisor;
	}
	
	/**
	 * set the recRevisor - 修改人
	 */
	public void setRecRevisor(String recRevisor) {
		this.recRevisor = recRevisor;
	}
	
	/**
	 * get the recReviseTime - 修改时间
	 * @return the recReviseTime
	 */
	public String getRecReviseTime() {
		return this.recReviseTime;
	}
	
	/**
	 * set the recReviseTime - 修改时间
	 */
	public void setRecReviseTime(String recReviseTime) {
		this.recReviseTime = recReviseTime;
	}
	
	/**
	 * get the archiveFlag - 归档标志
	 * @return the archiveFlag
	 */
	public String getArchiveFlag() {
		return this.archiveFlag;
	}
	
	/**
	 * set the archiveFlag - 归档标志
	 */
	public void setArchiveFlag(String archiveFlag) {
		this.archiveFlag = archiveFlag;
	}
	
	/**
	 * get the processInstanceId - 流程实例ID
	 * @return the processInstanceId
	 */
	public String getProcessInstanceId() {
		return this.processInstanceId;
	}
	
	/**
	 * set the processInstanceId - 流程实例ID
	 */
	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}
	
	/**
	 * get the fileId - 文件标识
	 * @return the fileId
	 */
	public String getFileId() {
		return this.fileId;
	}
	
	/**
	 * set the fileId - 文件标识
	 */
	public void setFileId(String fileId) {
		this.fileId = fileId;
	}
	
	/**
	 * get the id - ID
	 * @return the id
	 */
	public Integer getId() {
		return this.id;
	}
	
	/**
	 * set the id - ID
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	 * get the batchNo - 批次号
	 * @return the batchNo
	 */
	public String getBatchNo() {
		return this.batchNo;
	}
	
	/**
	 * set the batchNo - 批次号
	 */
	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}
	
	/**
	 * get the seqNo - 顺序号
	 * @return the seqNo
	 */
	public Integer getSeqNo() {
		return this.seqNo;
	}
	
	/**
	 * set the seqNo - 顺序号
	 */
	public void setSeqNo(Integer seqNo) {
		this.seqNo = seqNo;
	}
	
	/**
	 * get the companyCode - 公司代码
	 * @return the companyCode
	 */
	public String getCompanyCode() {
		return this.companyCode;
	}
	
	/**
	 * set the companyCode - 公司代码
	 */
	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}
	
	/**
	 * get the companyName - 公司别名称
	 * @return the companyName
	 */
	public String getCompanyName() {
		return this.companyName;
	}
	
	/**
	 * set the companyName - 公司别名称
	 */
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	
	/**
	 * get the vehicleNo - 车船号
	 * @return the vehicleNo
	 */
	public String getVehicleNo() {
		return this.vehicleNo;
	}
	
	/**
	 * set the vehicleNo - 车船号
	 */
	public void setVehicleNo(String vehicleNo) {
		this.vehicleNo = vehicleNo;
	}
	
	/**
	 * get the qualityDesc - 质量信息
	 * @return the qualityDesc
	 */
	public String getQualityDesc() {
		return this.qualityDesc;
	}
	
	/**
	 * set the qualityDesc - 质量信息
	 */
	public void setQualityDesc(String qualityDesc) {
		this.qualityDesc = qualityDesc;
	}
	
	/**
	 * get the qualityPara - 质量参数
	 * @return the qualityPara
	 */
	public String getQualityPara() {
		return this.qualityPara;
	}
	
	/**
	 * set the qualityPara - 质量参数
	 */
	public void setQualityPara(String qualityPara) {
		this.qualityPara = qualityPara;
	}
	
	/**
	 * get the saleNotaxPrice - 销售不含税单价
	 * @return the saleNotaxPrice
	 */
	public BigDecimal getSaleNotaxPrice() {
		return this.saleNotaxPrice;
	}
	
	/**
	 * set the saleNotaxPrice - 销售不含税单价
	 */
	public void setSaleNotaxPrice(BigDecimal saleNotaxPrice) {
		this.saleNotaxPrice = saleNotaxPrice;
	}
	
	/**
	 * get the inputTime - 录入时间
	 * @return the inputTime
	 */
	public String getInputTime() {
		return this.inputTime;
	}
	
	/**
	 * set the inputTime - 录入时间
	 */
	public void setInputTime(String inputTime) {
		this.inputTime = inputTime;
	}
	
	/**
	 * get the inputPersonId - 录入人工号
	 * @return the inputPersonId
	 */
	public String getInputPersonId() {
		return this.inputPersonId;
	}
	
	/**
	 * set the inputPersonId - 录入人工号
	 */
	public void setInputPersonId(String inputPersonId) {
		this.inputPersonId = inputPersonId;
	}
	
	/**
	 * get the inputPersonName - 录入人姓名
	 * @return the inputPersonName
	 */
	public String getInputPersonName() {
		return this.inputPersonName;
	}
	
	/**
	 * set the inputPersonName - 录入人姓名
	 */
	public void setInputPersonName(String inputPersonName) {
		this.inputPersonName = inputPersonName;
	}
	
	/**
	 * get the reviewTime - 复核时间
	 * @return the reviewTime
	 */
	public String getReviewTime() {
		return this.reviewTime;
	}
	
	/**
	 * set the reviewTime - 复核时间
	 */
	public void setReviewTime(String reviewTime) {
		this.reviewTime = reviewTime;
	}
	
	/**
	 * get the reviewPersonId - 复核人工号
	 * @return the reviewPersonId
	 */
	public String getReviewPersonId() {
		return this.reviewPersonId;
	}
	
	/**
	 * set the reviewPersonId - 复核人工号
	 */
	public void setReviewPersonId(String reviewPersonId) {
		this.reviewPersonId = reviewPersonId;
	}
	
	/**
	 * get the reviewPersonName - 复核人姓名
	 * @return the reviewPersonName
	 */
	public String getReviewPersonName() {
		return this.reviewPersonName;
	}
	
	/**
	 * set the reviewPersonName - 复核人姓名
	 */
	public void setReviewPersonName(String reviewPersonName) {
		this.reviewPersonName = reviewPersonName;
	}
	
	/**
	 * get the memo - 备注
	 * @return the memo
	 */
	public String getMemo() {
		return this.memo;
	}
	
	/**
	 * set the memo - 备注
	 */
	public void setMemo(String memo) {
		this.memo = memo;
	}
	
	/**
	 * get the stackingNo - 码单号
	 * @return the stackingNo
	 */
	public String getStackingNo() {
		return this.stackingNo;
	}
	
	/**
	 * set the stackingNo - 码单号
	 */
	public void setStackingNo(String stackingNo) {
		this.stackingNo = stackingNo;
	}
	
	/**
	 * get the dataSourceType - 数据来源性质
	 * @return the dataSourceType
	 */
	public String getDataSourceType() {
		return this.dataSourceType;
	}
	
	/**
	 * set the dataSourceType - 数据来源性质
	 */
	public void setDataSourceType(String dataSourceType) {
		this.dataSourceType = dataSourceType;
	}
	
	/**
	 * get the dataSourceCode - 数据来源代码
	 * @return the dataSourceCode
	 */
	public String getDataSourceCode() {
		return this.dataSourceCode;
	}
	
	/**
	 * set the dataSourceCode - 数据来源代码
	 */
	public void setDataSourceCode(String dataSourceCode) {
		this.dataSourceCode = dataSourceCode;
	}
	
	/**
	 * get the dataSourceName - 数据来源名称
	 * @return the dataSourceName
	 */
	public String getDataSourceName() {
		return this.dataSourceName;
	}
	
	/**
	 * set the dataSourceName - 数据来源名称
	 */
	public void setDataSourceName(String dataSourceName) {
		this.dataSourceName = dataSourceName;
	}
	
	/**
	 * get the tsosl02Id - 发货实绩表ID
	 * @return the tsosl02Id
	 */
	public String getTsosl02Id() {
		return this.tsosl02Id;
	}
	
	/**
	 * set the tsosl02Id - 发货实绩表ID
	 */
	public void setTsosl02Id(String tsosl02Id) {
		this.tsosl02Id = tsosl02Id;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setRecCreator(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("recCreator")), recCreator));
		setRecCreateTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("recCreateTime")), recCreateTime));
		setRecRevisor(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("recRevisor")), recRevisor));
		setRecReviseTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("recReviseTime")), recReviseTime));
		setArchiveFlag(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("archiveFlag")), archiveFlag));
		setProcessInstanceId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("processInstanceId")), processInstanceId));
		setFileId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fileId")), fileId));
		setId(NumberUtils.toInteger(StringUtils.toString(map.get("id")), id));
		setBatchNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("batchNo")), batchNo));
		setSeqNo(NumberUtils.toInteger(StringUtils.toString(map.get("seqNo")), seqNo));
		setCompanyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("companyCode")), companyCode));
		setCompanyName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("companyName")), companyName));
		setVehicleNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("vehicleNo")), vehicleNo));
		setQualityDesc(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("qualityDesc")), qualityDesc));
		setQualityPara(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("qualityPara")), qualityPara));
		setSaleNotaxPrice(NumberUtils.toBigDecimal(StringUtils.toString(map.get("saleNotaxPrice")), saleNotaxPrice));
		setInputTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inputTime")), inputTime));
		setInputPersonId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inputPersonId")), inputPersonId));
		setInputPersonName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inputPersonName")), inputPersonName));
		setReviewTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("reviewTime")), reviewTime));
		setReviewPersonId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("reviewPersonId")), reviewPersonId));
		setReviewPersonName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("reviewPersonName")), reviewPersonName));
		setMemo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("memo")), memo));
		setStackingNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("stackingNo")), stackingNo));
		setDataSourceType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("dataSourceType")), dataSourceType));
		setDataSourceCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("dataSourceCode")), dataSourceCode));
		setDataSourceName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("dataSourceName")), dataSourceName));
		setTsosl02Id(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("tsosl02Id")), tsosl02Id));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("recCreator",StringUtils.toString(recCreator, eiMetadata.getMeta("recCreator")));	
			map.put("recCreateTime",StringUtils.toString(recCreateTime, eiMetadata.getMeta("recCreateTime")));	
			map.put("recRevisor",StringUtils.toString(recRevisor, eiMetadata.getMeta("recRevisor")));	
			map.put("recReviseTime",StringUtils.toString(recReviseTime, eiMetadata.getMeta("recReviseTime")));	
			map.put("archiveFlag",StringUtils.toString(archiveFlag, eiMetadata.getMeta("archiveFlag")));	
			map.put("processInstanceId",StringUtils.toString(processInstanceId, eiMetadata.getMeta("processInstanceId")));	
			map.put("fileId",StringUtils.toString(fileId, eiMetadata.getMeta("fileId")));	
			map.put("id",StringUtils.toString(id, eiMetadata.getMeta("id")));	
			map.put("batchNo",StringUtils.toString(batchNo, eiMetadata.getMeta("batchNo")));	
			map.put("seqNo",StringUtils.toString(seqNo, eiMetadata.getMeta("seqNo")));	
			map.put("companyCode",StringUtils.toString(companyCode, eiMetadata.getMeta("companyCode")));	
			map.put("companyName",StringUtils.toString(companyName, eiMetadata.getMeta("companyName")));	
			map.put("vehicleNo",StringUtils.toString(vehicleNo, eiMetadata.getMeta("vehicleNo")));	
			map.put("qualityDesc",StringUtils.toString(qualityDesc, eiMetadata.getMeta("qualityDesc")));	
			map.put("qualityPara",StringUtils.toString(qualityPara, eiMetadata.getMeta("qualityPara")));	
			map.put("saleNotaxPrice",StringUtils.toString(saleNotaxPrice, eiMetadata.getMeta("saleNotaxPrice")));	
			map.put("inputTime",StringUtils.toString(inputTime, eiMetadata.getMeta("inputTime")));	
			map.put("inputPersonId",StringUtils.toString(inputPersonId, eiMetadata.getMeta("inputPersonId")));	
			map.put("inputPersonName",StringUtils.toString(inputPersonName, eiMetadata.getMeta("inputPersonName")));	
			map.put("reviewTime",StringUtils.toString(reviewTime, eiMetadata.getMeta("reviewTime")));	
			map.put("reviewPersonId",StringUtils.toString(reviewPersonId, eiMetadata.getMeta("reviewPersonId")));	
			map.put("reviewPersonName",StringUtils.toString(reviewPersonName, eiMetadata.getMeta("reviewPersonName")));	
			map.put("memo",StringUtils.toString(memo, eiMetadata.getMeta("memo")));	
			map.put("stackingNo",StringUtils.toString(stackingNo, eiMetadata.getMeta("stackingNo")));	
			map.put("dataSourceType",StringUtils.toString(dataSourceType, eiMetadata.getMeta("dataSourceType")));	
			map.put("dataSourceCode",StringUtils.toString(dataSourceCode, eiMetadata.getMeta("dataSourceCode")));	
			map.put("dataSourceName",StringUtils.toString(dataSourceName, eiMetadata.getMeta("dataSourceName")));	
			map.put("tsosl02Id",StringUtils.toString(tsosl02Id, eiMetadata.getMeta("tsosl02Id")));	
			
		return map;
	
	}
}